import Cookies from 'js-cookie';

const TokenKey = 'Admin-Token';
const RefeshTokenKey = 'Admin-RefeshToken';

export function getToken() {
  return Cookies.get(TokenKey);
}

export function setToken(token) {
  return Cookies.set(TokenKey, token);
}

export function removeToken() {
  return Cookies.remove(TokenKey);
}

export function getRefeshToken() {
  return Cookies.get(RefeshTokenKey);
}

export function setRefeshToken(token) {
  return Cookies.set(RefeshTokenKey, token);
}

export function removeRefeshToken() {
  return Cookies.remove(RefeshTokenKey);
}

